package com.ego.coupon.feign;

import com.ego.common.util.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @program: ego
 * @description: 商品远程服务
 * @author: KamTang
 * @create: 2022-12-31 09:30
 **/
@FeignClient("ego-product")
public interface ProductFeign {

    /**
     * 根据skuId获取sku信息
     * @param skuId skuId
     * @return @see
     * Result
     */
    @GetMapping("/product/sku-info/get/{skuId}")
    Result getSkuBySkuId(@PathVariable("skuId") Long skuId);
}
